$OpenBSD: patch-configure,v 1.2 2015/06/29 14:46:57 ajacoutot Exp $
--- configure.orig	Wed May  1 15:34:11 2013
+++ configure	Mon Jun 29 13:54:28 2015
@@ -7150,7 +7150,7 @@ fi
 
 
 if test "x$enable_staticlibs" = "xyes"; then
-   AFTERBASE_LIB="../../libAfterBase/libAfterBase.a"
+   AFTERBASE_LIB="../../libAfterBase/libAfterBase.a ${LOCALBASE}/lib/libexecinfo.a"
    AFTERIMAGE_LIB="../../libAfterImage/libAfterImage.a"
    AFTERSTEP_LIB="../../libAfterStep/libAfterStep.a"
    AFTERCONF_LIB="../../libAfterConf/libAfterConf.a"
@@ -7171,7 +7171,7 @@ else
    		LIBINSTALL="install.cyg"
 		LIBUNINSTALL="uninstall.cyg"
 	else
-   		AFTERBASE_LIB="../../libAfterBase/libAfterBase.so"
+   		AFTERBASE_LIB="../../libAfterBase/libAfterBase.so ${LOCALBASE}/lib/libexecinfo.a"
    		AFTERIMAGE_LIB="../../libAfterImage/libAfterImage.so"
    		AFTERSTEP_LIB="../../libAfterStep/libAfterStep.so"
    		AFTERCONF_LIB="../../libAfterConf/libAfterConf.so"
@@ -7183,7 +7183,7 @@ else
 	fi
 fi
 
-AFTERBASE_STATIC_LIB="../../libAfterBase/libAfterBase.a"
+AFTERBASE_STATIC_LIB="../../libAfterBase/libAfterBase.a ${LOCALBASE}/lib/libexecinfo.a"
 AFTERIMAGE_STATIC_LIB="../../libAfterImage/libAfterImage.a"
 AFTERSTEP_STATIC_LIB="../../libAfterStep/libAfterStep.a"
 AFTERCONF_STATIC_LIB="../../libAfterConf/libAfterConf.a"
@@ -7660,7 +7660,7 @@ _ACEOF
 
 fi
 
-			export CFLAGS=$gio_saved_cflags
+			export CFLAGS="$gio_saved_cflags"
 
 			present_libs="$LDFLAGS $LIBS $x_libs $AFTERIMAGE_LIBS";
 			for l in `echo "$GIOLIB_LIBS"`; do
